//-------------------------------------------------------------------------
// Copyright (c) 2000-2016 Digital. All Rights Reserved.
//
// This software is the confidential and proprietary information of
// Digital
//
// Original author: allnas
//
//-------------------------------------------------------------------------
// APACHE
//-------------------------------------------------------------------------
package com.zj.sc8.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaojin
 */
@Slf4j
@RestController
public class IndexController {

    @GetMapping("login")
    public String login(String userName) {
        log.info("userName:{}", userName);
        return "admin".equals(userName) ? "管理员" : "普通用户";
    }
}
